package com.company.user.req;

import com.baomidou.mybatisplus.annotation.TableId;
import com.company.user.entity.UserEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("通过员工信息修改员信息接口")
public class UpdateUserInfoByUserInfoReq {

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("用户姓名--例如张三")
    private String userName;

    @ApiModelProperty("登录用户名")
    private String loginName;

    @ApiModelProperty("登陆密码")
    private String password;

    @ApiModelProperty("职位")
    private String positionId;

    @ApiModelProperty("所属部门")
    private String departmentId;

    @ApiModelProperty("手机号码")
    private String phoneNumber;

    @ApiModelProperty("是否为管理者 0==管理者 1==员工")
    private Integer userType;

    @ApiModelProperty("状态，0：正常，1：删除，2封禁")
    private Integer userStatus;

    @ApiModelProperty("用户描述信息")
    private String description;

    @ApiModelProperty("备注")
    private String remark;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void copyTo(UserEntity user){
        user.setUserId(this.userId);
        user.setUserName(this.userName);
        user.setLoginName(this.loginName);
        user.setPhoneNumber(this.phoneNumber);
        user.setPositionId(this.positionId);
        user.setDepartmentId(this.departmentId);
        user.setDescription(this.description);
        user.setUserStatus(this.userStatus);
        user.setUserType(this.userType);
        user.setRemark(this.remark);
    }
}
